package com.lanou.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;

/**
 * Created by dllo on 15/10/31.
 */
public class MoreActivity extends Activity implements View.OnClickListener {
    private ImageButton backButtonmore;
    private ImageButton timeButton;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_more);
        backButtonmore=(ImageButton)findViewById(R.id.backButtonmore);
        timeButton=(ImageButton)findViewById(R.id.timeButton);
        backButtonmore.setOnClickListener(this);
        timeButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.backButtonmore:
                Intent intent =new Intent(this,MainActivity.class);
                startActivity(intent);

                break;
            case R.id.timeButton:
                Intent intent1 =new Intent(this,TimeActivity.class);
                startActivity(intent1);
        }
    }
}
